package com.mc.cloud.mall.user.service;

import com.mc.cloud.mall.common.exception.MallException;
import com.mc.cloud.mall.user.model.pojo.User;

import java.security.NoSuchAlgorithmException;

/**
 * @ClassName UserService
 * @Author MC
 * @Date 2021/5/20 16:54
 * @Version 1.0
 **/

public interface UserService {
    
    //用户注册
    void register(String userName,String password) throws MallException;
    
    User login(String userName, String password) throws NoSuchAlgorithmException, MallException;
    
    void update(User user) throws MallException;
    
    boolean isAdmin(User user);
}